package com.dongdongqiang.domain.sys;

import com.dongdongqiang.common.base.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Table;


/**
* SysPermission 实体类
* by ZZB 2017-09-15 21:22:41
*/
@Table(name = "sys_permission")
public class SysPermission extends BaseEntity {
    @Column(name = "permission_name")
    private String permissionName;
    @Column(name = "tag")
    private String tag;
    @Column(name = "icon")
    private String icon;
    @Column(name = "link")
    private String link;
    @Column(name = "level")
    private Integer level;
    @Column(name = "type")
    private Integer type;
    @Column(name = "order_index")
    private Integer orderIndex;
    @Column(name = "parent_id")
    private String parentId;

    /*----------------------get set 方法----------------------*/
    public String getPermissionName() {return permissionName;}
    public void setPermissionName(String permissionName){this.permissionName = permissionName == null ? null : permissionName.trim();}
    public String getIcon() {return icon;}
    public void setIcon(String icon){this.icon = icon == null ? null : icon.trim();}
    public String getLink() {return link;}
    public void setLink(String link){this.link = link == null ? null : link.trim();}
    public Integer getLevel() {return level;}
    public void setLevel(Integer level){this.level = level;}
    public String getParentId() {return parentId;}
    public void setParentId(String parentId){this.parentId = parentId == null ? null : parentId.trim();}

    public Integer getOrderIndex() {
        return orderIndex;
    }

    public void setOrderIndex(Integer orderIndex) {
        this.orderIndex = orderIndex;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    @Override
    public String toString() {
        return "SysPermission{" +
                "permissionName='" + permissionName + '\'' +
                ", tag='" + tag + '\'' +
                ", icon='" + icon + '\'' +
                ", link='" + link + '\'' +
                ", level=" + level +
                ", type=" + type +
                ", orderIndex=" + orderIndex +
                ", parentId='" + parentId + '\'' +
                '}';
    }
}
